package com.eightbears.beboy.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.eightbears.beboy.R;
import com.eightbears.greendao.SearchKey;


public class SearchHistoryAdapter extends BaseQuickAdapter<SearchKey, BaseViewHolder> {

    public SearchHistoryAdapter() {
        super(R.layout.item_search_key, null);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, SearchKey searchKey) {
        baseViewHolder.setText(R.id.tv_search_title, searchKey.getSearch_title())
        .addOnClickListener(R.id.tv_search_title)
        .addOnClickListener(R.id.ll_del_item);
    }
}
